//题目要求：输入N*N的乘法口诀表，N由用户输入
import java.util.Scanner;
public class homework1 {
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);
        int n=input.nextInt();
        for(int i=1;i<=n;i++){
            for(int j=1;j<=i;j++){
                System.out.print(i*j+" ");
            }
            System.out.print("\n");
        }
    }
}
